<?php

namespace App\Providers;

use App\Listener\WorkshopUpdate;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;
use Illuminate\Foundation\Http\Events\RequestHandled;


class EventServiceProvider extends ServiceProvider
{
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        'App\Events\WorkshopCreated'=>[
            'App\Listener\Workshop',
            'App\Listener\WorkshopSlider',
          //  'App\Listener\WorkshopShenhe'
        ],
        'App\Events\WorkshopUpdated'=>[
        //    WorkshopUpdate::class
            'App\Listener\WorkshopSliderUpdated'
        ],
        'App\Events\AgentCreated'=>[
            'App\Listener\Agent',
            'App\Listener\AgentQrcode'
        ],
        RequestHandled::class => [
            'App\Listener\CacheApiResult',
        ],
        'App\Events\AgentYuyue'=>[
            'App\Listener\AgentYuyue',
        ],
        'App\Events\AgentZiXun'=>[
            'App\Listener\AgentZiXun',
        ],
        'App\Events\WorkshopShenhe'=>[
            'App\Listener\WorkshopShenheNotify'
        ],
        'App\Events\WorkshopRefuse'=>[
            'App\Listener\WorkshopRefuseNotify'
        ],
     /*   'App\Events\AgentUpdated'=>[
            'App\Listener\Agent'
        ]*/
        'App\Events\Customer\CustomerSaved'=>[
            'App\listener\Customer\CustomerSaved'
        ]
    ];

    /**
     * Register any events for your application.
     *
     * @return void
     */
    public function boot()
    {
        parent::boot();

        //
    }
}
